__author__ = 'Nguyen Duc Hai'
import db_conn
import config

conn = db_conn.MyMySQL(db=config.MYSQL_DB)
engine = conn.engine
metadata = conn.metadata
tbl_user = metadata.tables['user']


def get_next_task():
    return tbl_user.select().execute()

for row in get_next_task().fetchall():
    print row['name']